<template>
  <div class="app-container mine-root">
    <div class="user-container">
      <user-info></user-info>
    </div>
    <div class="tabs-container">
      <el-tabs v-model="currentTabValue">
        <el-tab-pane v-for="item in tabsData" :key="item.value" :label="item.label"
                     :name="item.value"></el-tab-pane>
      </el-tabs>
    </div>
    <div class="data-container">
      <component :is="currentTabValue"></component>
    </div>
  </div>
</template>

<script>
import UserInfo from "@/views/mine/components/userInfo.vue";
import SecuritySettings from "@/views/mine/subPage/securitySettings.vue";

export default {
  name: 'personal_setting',
  components: {UserInfo, SecuritySettings},
  data() {
    return {
      tabsData: [
        {
          label: '安全设置',
          value: 'SecuritySettings'
        }
      ],
      currentTabValue: 'SecuritySettings',
    }
  },
}
</script>

<style lang="scss" scoped>
@import "@/assets/style/businessTheme.scss";

.app-container.mine-root {
  display: flex;
  flex-direction: column;


  .user-container, .data-container {
    width: 100%;
  }

  .user-container {
    height: 80px;
    margin-bottom: 10px;
  }

  ::v-deep .el-tabs {
    height: 40px;

    .el-tabs__header {
      margin-bottom: 0;

      .el-tabs__item{
        font-size: $thirdly-font-size;
      }

      .el-tabs__nav-wrap::after {
        background: rgba(220, 223, 230, 1);
        height: 1px;
      }
    }
  }

  .data-container {
    padding-top: 20px;
    box-sizing: border-box;
    height: calc(100% - 130px);
  }
}

</style>
